package org.example.car.system;

import io.minio.MinioClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @apiNote 系统服务
 */
@SpringBootApplication
@MapperScan("org.example.car.system.mapper")
public class SystemApp {
    public static void main(String[] args) {
        SpringApplication.run(SystemApp.class, args);
        System.out.println("系统服务-启动成功");
    }

    @Bean
    public MinioClient getClient() throws Exception {
        MinioClient minioClient = new MinioClient(
                "http://127.0.0.1:9000",
                "51cLM1BrITAq68aa",
                "dICb1I4SMOgQlYXjPSjYZ9d1HpBk97om"
        );
        return minioClient;
    }
}
